import * as express from 'express'
import classesController from '../../controllers/classesController'

const router = express.Router()

router.get('/all', classesController.findAll)
// 根据班级、学院、专业名称进行模糊查询
router.post('/name', classesController.findByClassNameKey)
// 新建
router.post('/create', classesController.createClasses)
// 修改
router.post('/update', classesController.updateClasses)
// 删除
router.delete('/:id', classesController.deleteClassesById)

export default router